import Vue from 'vue'
import Router from 'vue-router'

// 引入组件
import Home from '@/components/home/Home.vue'
import City from '@/components/City/City.vue'
import Detail from '@/components/Detail/Detail.vue'
Vue.use(Router)
export default new Router({
  routes: [
    { path: '/', redirect: '/home' },
    { path: '/home', component: Home },
    { path: '/city', component: City },
    { path: '/detail/:id', component: Detail },
  ]
})
